package feign.usercloud;

import domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @ClassName UserServer
 * @Description
 * @Author xiaoxi
 * @Date 2022/11/16 1:14
 * @Version 1.0
 */
@FeignClient("user-server")
public interface UserServer {

    @GetMapping("/user/{id}")
    User findById(@PathVariable("id") Long id);

}